<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.List"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% List<?> result = (List<?>)request.getAttribute("result"); %>
<% String myContext = request.getContextPath() ; %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript" src="./js/Admin.js"></script>
<style>
.ResultTab {
	font-size: small;
	font-family: 맑은 고딕;
	margin: 0px 0px 50px 0px;
}
</style>
<div id="DBSResult">
	<c:set var="pageNumber" value="${pageInfo.pageNumber}"/>
	<c:set var="pageSize" value="${requestScope.pageInfo.pageSize}"/>
	<c:set var="page_Info" value="pageNumber=${pageNumber}&pageSize=${pageSize}"/>
	<table id="re_List" class="ResultTab" width="750">
		<thead class="re_f_f9">
			<tr>
				<th scope="col"><span>년도</span></th>
				<th scope="col"><span>측정소명</span></th>
				<th scope="col"><span>이산화질소농도</span></th>
				<th scope="col"><span>오존농도</span></th>
				<th scope="col"><span>일산화탄소농도</span></th>
				<th scope="col"><span>아황산가스</span></th>
				<th scope="col"><span>미세먼지</span></th>
				<th scope="col"><span>초미세먼지</span></th>
				<th>삭제</th>
			</tr>
			<c:if test="${result.size() <= 0 }">
			<td colspan="9" align="center">::::::::::::검색된 자료가 없습니다.::::::::::::</td>
			</c:if>
			<c:forEach var="result" items="${result}">
				<tr>
					<td>${result.year}</td>
					<td>${result.seoul}</td>
					<td>${result.no2}</td>
					<td>${result.o3 }</td>
					<td>${result.co }</td>
					<td>${result.so2 }</td>
					<td>${result.pm10 }</td>
					<td>${result.pm25 }</td>
					<td><a href="#" onclick="ajaxNoticeResult('AdminDBdelete.admin?hlnum=${result.hlnum}', '삭제되었습니다.')">삭제</a></td>
				</tr>
			</c:forEach>
		<tr>
			<td colspan="9" align="center">${pageInfo.pagingHtml} ${requestScope.pageInfo.pagingStatus}</td>
		</tr>
		</thead>
	</table>
</div>